devPort = 505;
devName = "dgz_pwr_do006"

numBits = 50000;
numInputBits = 50000;
numRegs = 50000;
numInputRegs = 50000;

debugFlag = 1;

function simDev(func,addr,num)
	print("begin simDev" .. devName);
	
	local val=get_bit(addr,0);
	
	print(val);
	
	delaySim(5);
	
	if val==1 and addr==0x1000 then
		set_reg(0x900,0x400);
	end;
	
	if val==1 and addr==0x1001 then
		set_reg(0x900,0x800);
	end;
	
	print("end simDev" .. devName);
end

